find depth of binary tree